package com.lianjia.sh.se.esb.server.action.impl;

import com.lianjia.sh.se.esb.server.action.AbstractActiveMQMessageAction;
import com.lianjia.sh.se.esb.spi.model.Message;
import org.springframework.aop.support.AopUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lianjia.sh.se.esb.server.annotation.MessageActionCfg;

/**
 * Created by yangsp1 on 16/7/18.
 */
@Service
@MessageActionCfg(actionType = "propertySaleSendSns",errMaxRepeatCnt = 3,
        MessageProjectType  = "esb.property",MessageServiceType = "addProperty")
public class MessageActionImpl extends AbstractActiveMQMessageAction {
    @Autowired
    MessageActionImpl2 messageActionImpl2;
    @Override
    public void executeMessage(Message message) {
        Object data = message.getData();
        System.out.println(data);
        AopUtils.isAopProxy(this);
        messageActionImpl2.executeMessage(message);
    }
}
